package com.hgt.cloudAlibaba.service;

import com.hgt.cloudAlibaba.service.impl.PaymentFallbackService;
import com.hgt.springcloud.common.CommonResult;
import com.hgt.springcloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author HuangGaoTao 929507053@qq.com
 * @Created: 2021/7/19 15:06
 */
@FeignClient(value = "nacos-payment-provider",fallback = PaymentFallbackService.class)
public interface PaymentService {

    @GetMapping("/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id")Long id);
}
